﻿// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_SEC_QUERYFIELD
// * CreateDate    : 2011/8/5 11:34:32
// * Creater       : CodeSmith
// * LastChangeDate: 2011/8/5 11:34:32
// * LastChanger   : 2011/8/5 11:34:32
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;
using ESOL.Common.Schema;

namespace ESOL.Common.Entity
{
    [Serializable]
    public partial class SecQueryfieldEntity : EntityBase
    {
        public SecQueryfieldTable TableSchema
        {
            get
            {
                return SecQueryfieldTable.Current;
            }
        }

        public SecQueryfieldEntity()
        {

        }

        public SecQueryfieldEntity(DataRow dr)
        {
            if (dr == null)
            {
                return;
            }
            this.MenuId = Convert.ToString(CommonFunctions.ToObject(dr["MENU_ID"]));
            this.Fieldorder = Convert.ToDecimal(CommonFunctions.ToObject(dr["FIELDORDER"]));
            this.Fieldtext = Convert.ToString(CommonFunctions.ToObject(dr["FIELDTEXT"]));
            this.Fieldvalue = Convert.ToString(CommonFunctions.ToObject(dr["FIELDVALUE"]));
            this.Remark = Convert.ToString(CommonFunctions.ToObject(dr["REMARK"]));
            this.Iscommonused = Convert.ToDecimal(CommonFunctions.ToObject(dr["ISCOMMONUSED"]));
        }

        public override TableInfo OringTableSchema
        {
            get
            {
                return SecQueryfieldTable.Current;
            }
        }

        #region Perporty List
        public string MenuId
        {
            get { return Convert.ToString(GetData(SecQueryfieldTable.C_MENU_ID)); }
            set { SetData(SecQueryfieldTable.C_MENU_ID, value); }
        }

        public decimal Fieldorder
        {
            get { return Convert.ToDecimal(GetData(SecQueryfieldTable.C_FIELDORDER)); }
            set { SetData(SecQueryfieldTable.C_FIELDORDER, value); }
        }

        public string Fieldtext
        {
            get { return Convert.ToString(GetData(SecQueryfieldTable.C_FIELDTEXT)); }
            set { SetData(SecQueryfieldTable.C_FIELDTEXT, value); }
        }

        public string Fieldvalue
        {
            get { return Convert.ToString(GetData(SecQueryfieldTable.C_FIELDVALUE)); }
            set { SetData(SecQueryfieldTable.C_FIELDVALUE, value); }
        }

        public string Remark
        {
            get { return Convert.ToString(GetData(SecQueryfieldTable.C_REMARK)); }
            set { SetData(SecQueryfieldTable.C_REMARK, value); }
        }

        public decimal Iscommonused
        {
            get { return Convert.ToDecimal(GetData(SecQueryfieldTable.C_ISCOMMONUSED)); }
            set { SetData(SecQueryfieldTable.C_ISCOMMONUSED, value); }
        }

        #endregion
    }


}

